import { BrowserRouter as Router, Route, Redirect } from 'react-router-dom'
import Layout from './pages/Layout'
import Login from './pages/Login'
import './index.scss'
const App = () => {
  return (
    <Router>
      <div>
        <Route exact path="/" render={() => <Redirect to="/home" />}></Route>
        <Route path="/login" component={Login}></Route>
        <Route path="/home" component={Layout}></Route>
      </div>
    </Router>
  )
}

export default App
